home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / packages / file-part.elc.z / file-part.elc
Emacs Compiled Lisp  |  1998-05-21  |  7.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 32 3a 33 33 20 31 | 39 39 38 0a 3b 3b 3b 20 |:52:33 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 61 63 6b |s-20.3/l|isp/pack|
|000000a0| 61 67 65 73 2f 66 69 6c | 65 2d 70 61 72 74 2e 65 |ages/fil|e-part.e|
|000000b0| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|000000c0| 69 6f 6e 20 32 30 2e 34 | 20 22 45 6d 65 72 61 6c |ion 20.4| "Emeral|
|000000d0| 64 22 20 58 45 6d 61 63 | 73 20 20 4c 75 63 69 64 |d" XEmac|s Lucid|
|000000e0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000f0| 65 72 73 69 6f 6e 20 32 | 2e 32 35 20 58 45 6d 61 |ersion 2|.25 XEma|
|00000100| 63 73 3b 20 32 32 2d 4d | 61 72 2d 39 36 2e 0a 3b |cs; 22-M|ar-96..;|
|00000110| 3b 3b 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |;; optim|ization |
|00000120| 69 73 20 6f 6e 2e 0a 3b | 3b 3b 20 74 68 69 73 20 |is on..;|;; this |
|00000130| 66 69 6c 65 20 75 73 65 | 73 20 6f 70 63 6f 64 65 |file use|s opcode|
|00000140| 73 20 77 68 69 63 68 20 | 64 6f 20 6e 6f 74 20 65 |s which |do not e|
|00000150| 78 69 73 74 20 69 6e 20 | 45 6d 61 63 73 20 31 39 |xist in |Emacs 19|
|00000160| 2e 0a 0a 28 69 66 20 28 | 61 6e 64 20 28 62 6f 75 |...(if (|and (bou|
|00000170| 6e 64 70 20 27 65 6d 61 | 63 73 2d 76 65 72 73 69 |ndp 'ema|cs-versi|
|00000180| 6f 6e 29 0a 09 20 28 6f | 72 20 28 61 6e 64 20 28 |on).. (o|r (and (|
|00000190| 62 6f 75 6e 64 70 20 27 | 65 70 6f 63 68 3a 3a 76 |boundp '|epoch::v|
|000001a0| 65 72 73 69 6f 6e 29 20 | 65 70 6f 63 68 3a 3a 76 |ersion) |epoch::v|
|000001b0| 65 72 73 69 6f 6e 29 0a | 09 20 20 20 20 20 28 73 |ersion).|. (s|
|000001c0| 74 72 69 6e 67 2d 6c 65 | 73 73 70 20 65 6d 61 63 |tring-le|ssp emac|
|000001d0| 73 2d 76 65 72 73 69 6f | 6e 20 22 32 30 22 29 29 |s-versio|n "20"))|
|000001e0| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 60 66 |). (e|rror "`f|
|000001f0| 69 6c 65 2d 70 61 72 74 | 2e 65 6c 27 20 77 61 73 |ile-part|.el' was|
|00000200| 20 63 6f 6d 70 69 6c 65 | 64 20 66 6f 72 20 45 6d | compile|d for Em|
|00000210| 61 63 73 20 32 30 22 29 | 29 0a 0a 28 6f 72 20 28 |acs 20")|)..(or (|
|00000220| 62 6f 75 6e 64 70 20 27 | 63 75 72 72 65 6e 74 2d |boundp '|current-|
|00000230| 6c 6f 61 64 2d 6c 69 73 | 74 29 20 28 73 65 74 71 |load-lis|t) (setq|
|00000240| 20 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 | current|-load-li|
|00000250| 73 74 20 6e 69 6c 29 29 | 0a 0a 0a 28 62 79 74 65 |st nil))|...(byte|
|00000260| 2d 63 6f 64 65 20 22 c0 | c1 21 88 c2 c3 c4 c5 23 |-code ".|.!.....#|
|00000270| 87 22 20 5b 70 72 6f 76 | 69 64 65 20 66 69 6c 65 |." [prov|ide file|
|00000280| 2d 70 61 72 74 20 64 65 | 66 69 6e 65 2d 65 72 72 |-part de|fine-err|
|00000290| 6f 72 20 66 69 6c 65 2d | 70 61 72 74 2d 65 72 72 |or file-|part-err|
|000002a0| 6f 72 20 22 46 69 6c 65 | 20 70 61 72 74 20 65 72 |or "File| part er|
|000002b0| 72 6f 72 22 20 66 69 6c | 65 2d 65 72 72 6f 72 5d |ror" fil|e-error]|
|000002c0| 20 34 29 0a 23 40 31 37 | 30 20 41 6c 69 73 74 20 | 4).#@17|0 Alist |
|000002d0| 6f 66 20 66 69 6c 65 20 | 70 61 72 74 73 20 69 6e |of file |parts in|
|000002e0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|000002f0| 66 65 72 2e 0a 45 61 63 | 68 20 65 6c 65 6d 65 6e |fer..Eac|h elemen|
|00000300| 74 20 6f 66 20 74 68 65 | 20 61 6c 69 73 74 20 6d |t of the| alist m|
|00000310| 61 70 73 20 61 6e 20 65 | 78 74 65 6e 74 20 64 65 |aps an e|xtent de|
|00000320| 73 63 72 69 62 69 6e 67 | 20 74 68 65 20 66 69 6c |scribing| the fil|
|00000330| 65 20 70 61 72 74 0a 74 | 6f 20 74 68 65 20 62 75 |e part.t|o the bu|
|00000340| 66 66 65 72 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ffer con|taining |
|00000350| 74 68 65 20 66 69 6c 65 | 20 70 61 72 74 2e 20 20 |the file| part. |
|00000360| 44 4f 4e 27 54 20 4d 4f | 44 49 46 59 20 54 48 49 |DON'T MO|DIFY THI|
|00000370| 53 2e 1f 0a 28 64 65 66 | 76 61 72 20 66 69 6c 65 |S...(def|var file|
|00000380| 2d 70 61 72 74 2d 65 78 | 74 65 6e 74 2d 61 6c 69 |-part-ex|tent-ali|
|00000390| 73 74 20 6e 69 6c 20 28 | 23 24 20 2e 20 37 31 34 |st nil (|#$ . 714|
|000003a0| 29 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)).(byte|-code ".|
|000003b0| c1 21 88 c2 c1 c3 5c 22 | 87 22 20 5b 6d 61 6b 65 |.!....\"|." [make|
|000003c0| 2d 76 61 72 69 61 62 6c | 65 2d 62 75 66 66 65 72 |-variabl|e-buffer|
|000003d0| 2d 6c 6f 63 61 6c 20 66 | 69 6c 65 2d 70 61 72 74 |-local f|ile-part|
|000003e0| 2d 65 78 74 65 6e 74 2d | 61 6c 69 73 74 20 73 65 |-extent-|alist se|
|000003f0| 74 2d 64 65 66 61 75 6c | 74 20 6e 69 6c 5d 20 33 |t-defaul|t nil] 3|
|00000400| 29 0a 23 40 31 39 35 20 | 45 78 74 65 6e 74 20 74 |).#@195 |Extent t|
|00000410| 68 69 73 20 66 69 6c 65 | 20 70 61 72 74 20 72 65 |his file| part re|
|00000420| 66 65 72 73 20 74 6f 20 | 69 6e 20 74 68 65 20 6d |fers to |in the m|
|00000430| 61 73 74 65 72 20 62 75 | 66 66 65 72 2e 0a 4e 49 |aster bu|ffer..NI|
|00000440| 4c 20 69 66 20 74 68 69 | 73 20 62 75 66 66 65 72 |L if thi|s buffer|
|00000450| 20 69 73 20 6e 6f 74 20 | 61 20 66 69 6c 65 20 70 | is not |a file p|
|00000460| 61 72 74 2e 20 20 54 68 | 65 20 6d 61 73 74 65 72 |art. Th|e master|
|00000470| 20 62 75 66 66 65 72 20 | 69 74 73 65 6c 66 0a 63 | buffer |itself.c|
|00000480| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 62 79 20 63 |an be fo|und by c|
|00000490| 61 6c 6c 69 6e 67 20 60 | 65 78 74 65 6e 74 2d 62 |alling `|extent-b|
|000004a0| 75 66 66 65 72 27 20 6f | 6e 20 74 68 69 73 20 65 |uffer' o|n this e|
|000004b0| 78 74 65 6e 74 2e 0a 44 | 4f 4e 27 54 20 4d 4f 44 |xtent..D|ON'T MOD|
|000004c0| 49 46 59 20 54 48 49 53 | 2e 1f 0a 28 64 65 66 76 |IFY THIS|...(defv|
|000004d0| 61 72 20 66 69 6c 65 2d | 70 61 72 74 2d 6d 61 73 |ar file-|part-mas|
|000004e0| 74 65 72 2d 65 78 74 65 | 6e 74 20 6e 69 6c 20 28 |ter-exte|nt nil (|
|000004f0| 23 24 20 2e 20 31 30 33 | 32 29 29 0a 28 62 79 74 |#$ . 103|2)).(byt|
|00000500| 65 2d 63 6f 64 65 20 22 | c0 c1 21 88 c2 c1 c3 5c |e-code "|..!....\|
|00000510| 22 88 c1 0c b7 ac 84 0c | c5 42 14 c3 87 22 20 5b |".......|.B..." [|
|00000520| 6d 61 6b 65 2d 76 61 72 | 69 61 62 6c 65 2d 62 75 |make-var|iable-bu|
|00000530| 66 66 65 72 2d 6c 6f 63 | 61 6c 20 66 69 6c 65 2d |ffer-loc|al file-|
|00000540| 70 61 72 74 2d 6d 61 73 | 74 65 72 2d 65 78 74 65 |part-mas|ter-exte|
|00000550| 6e 74 20 73 65 74 2d 64 | 65 66 61 75 6c 74 20 6e |nt set-d|efault n|
|00000560| 69 6c 20 6d 69 6e 6f 72 | 2d 6d 6f 64 65 2d 61 6c |il minor|-mode-al|
|00000570| 69 73 74 20 28 28 66 69 | 6c 65 2d 70 61 72 74 2d |ist ((fi|le-part-|
|00000580| 6d 61 73 74 65 72 2d 65 | 78 74 65 6e 74 20 22 20 |master-e|xtent " |
|00000590| 46 69 6c 65 2d 70 61 72 | 74 22 29 29 5d 20 33 29 |File-par|t"))] 3)|
|000005a0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 66 69 6c 65 |.(defali|as 'file|
|000005b0| 2d 70 61 72 74 2d 6d 61 | 70 74 72 75 65 20 23 5b |-part-ma|ptrue #[|
|000005c0| 28 66 6e 20 6c 69 73 74 | 29 20 22 08 ac 82 c1 87 |(fn list|) ".....|
|000005d0| 5c 6e 08 40 21 ae 85 c3 | 5c 6e 08 41 5c 22 87 22 |\n.@!...|\n.A\"."|
|000005e0| 20 5b 6c 69 73 74 20 6e | 69 6c 20 66 6e 20 66 69 | [list n|il fn fi|
|000005f0| 6c 65 2d 70 61 72 74 2d | 6d 61 70 74 72 75 65 5d |le-part-|maptrue]|
|00000600| 20 33 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 | 3]).(de|falias '|
|00000610| 66 69 6c 65 2d 70 61 72 | 74 2d 62 75 66 66 65 72 |file-par|t-buffer|
|00000620| 2d 66 72 6f 6d 2d 61 72 | 67 20 23 5b 28 61 72 67 |-from-ar|g #[(arg|
|00000630| 29 20 22 c0 09 ae 81 70 | 21 87 22 20 5b 67 65 74 |) "....p|!." [get|
|00000640| 2d 62 75 66 66 65 72 20 | 61 72 67 5d 20 32 5d 29 |-buffer |arg] 2])|
|00000650| 0a 23 40 36 33 37 20 4d | 61 6b 65 20 61 20 66 69 |.#@637 M|ake a fi|
|00000660| 6c 65 20 70 61 72 74 20 | 6f 6e 20 62 75 66 66 65 |le part |on buffe|
|00000670| 72 20 42 55 46 46 45 52 | 20 6f 75 74 20 6f 66 20 |r BUFFER| out of |
|00000680| 74 68 65 20 72 65 67 69 | 6f 6e 2e 20 20 43 61 6c |the regi|on. Cal|
|00000690| 6c 20 69 74 20 4e 41 4d | 45 2e 0a 54 68 69 73 20 |l it NAM|E..This |
|000006a0| 63 6f 6d 6d 61 6e 64 20 | 63 72 65 61 74 65 73 20 |command |creates |
|000006b0| 61 20 6e 65 77 20 62 75 | 66 66 65 72 20 63 6f 6e |a new bu|ffer con|
|000006c0| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 63 6f 6e 74 |taining |the cont|
|000006d0| 65 6e 74 73 20 6f 66 20 | 74 68 65 0a 72 65 67 69 |ents of |the.regi|
|000006e0| 6f 6e 20 61 6e 64 20 6d | 61 72 6b 73 20 74 68 65 |on and m|arks the|
|000006f0| 20 62 75 66 66 65 72 20 | 61 73 20 72 65 66 65 72 | buffer |as refer|
|00000700| 72 69 6e 67 20 74 6f 20 | 74 68 65 20 73 70 65 63 |ring to |the spec|
|00000710| 69 66 69 65 64 20 62 75 | 66 66 65 72 2c 0a 63 61 |ified bu|ffer,.ca|
|00000720| 6c 6c 65 64 20 74 68 65 | 20 60 6d 61 73 74 65 72 |lled the| `master|
|00000730| 20 62 75 66 66 65 72 27 | 2e 20 20 57 68 65 6e 20 | buffer'|. When |
|00000740| 74 68 65 20 66 69 6c 65 | 2d 70 61 72 74 20 62 75 |the file|-part bu|
|00000750| 66 66 65 72 20 69 73 20 | 73 61 76 65 64 2c 0a 69 |ffer is |saved,.i|
|00000760| 74 73 20 63 68 61 6e 67 | 65 73 20 61 72 65 20 69 |ts chang|es are i|
|00000770| 6e 74 65 67 72 61 74 65 | 64 20 62 61 63 6b 20 69 |ntegrate|d back i|
|00000780| 6e 74 6f 20 74 68 65 20 | 6d 61 73 74 65 72 20 62 |nto the |master b|
|00000790| 75 66 66 65 72 2e 20 20 | 57 68 65 6e 20 74 68 65 |uffer. |When the|
|000007a0| 0a 6d 61 73 74 65 72 20 | 62 75 66 66 65 72 20 69 |.master |buffer i|
|000007b0| 73 20 64 65 6c 65 74 65 | 64 2c 20 61 6c 6c 20 66 |s delete|d, all f|
|000007c0| 69 6c 65 20 70 61 72 74 | 73 20 61 72 65 20 64 65 |ile part|s are de|
|000007d0| 6c 65 74 65 64 20 77 69 | 74 68 20 69 74 2e 0a 0a |leted wi|th it...|
|000007e0| 57 68 65 6e 20 63 61 6c | 6c 65 64 20 66 72 6f 6d |When cal|led from|
|000007f0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2c 20 65 78 70 | a funct|ion, exp|
|00000800| 65 63 74 73 20 66 6f 75 | 72 20 61 72 67 75 6d 65 |ects fou|r argume|
|00000810| 6e 74 73 2c 20 53 54 41 | 52 54 2c 20 45 4e 44 2c |nts, STA|RT, END,|
|00000820| 0a 4e 41 4d 45 2c 20 61 | 6e 64 20 42 55 46 46 45 |.NAME, a|nd BUFFE|
|00000830| 52 2c 20 61 6c 6c 20 6f | 66 20 77 68 69 63 68 20 |R, all o|f which |
|00000840| 61 72 65 20 6f 70 74 69 | 6f 6e 61 6c 20 61 6e 64 |are opti|onal and|
|00000850| 20 64 65 66 61 75 6c 74 | 20 74 6f 20 74 68 65 0a | default| to the.|
|00000860| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 42 55 46 |beginnin|g of BUF|
|00000870| 46 45 52 2c 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |FER, the| end of |
|00000880| 42 55 46 46 45 52 2c 20 | 61 20 6e 61 6d 65 20 67 |BUFFER, |a name g|
|00000890| 65 6e 65 72 61 74 65 64 | 20 66 72 6f 6d 0a 42 55 |enerated| from.BU|
|000008a0| 46 46 45 52 27 73 20 6e | 61 6d 65 2c 20 61 6e 64 |FFER's n|ame, and|
|000008b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|000008c0| 66 65 72 2c 20 72 65 73 | 70 65 63 74 69 76 65 6c |fer, res|pectivel|
|000008d0| 79 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6d |y...(def|alias 'm|
|000008e0| 61 6b 65 2d 66 69 6c 65 | 2d 70 61 72 74 20 23 5b |ake-file|-part #[|
|000008f0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 73 74 61 72 74 |(&option|al start|
|00000900| 20 65 6e 64 20 6e 61 6d | 65 20 62 75 66 66 65 72 | end nam|e buffer|
|00000910| 29 20 22 c0 09 21 11 5c | 6e ac 82 65 12 0b ac 82 |) "..!.\|n..e....|
|00000920| 64 13 0c ac 86 c5 09 21 | c6 50 14 5c 6e 0b 56 3f |d......!|.P.\n.V?|
|00000930| 85 a3 00 09 71 88 c7 c8 | 21 88 c7 c9 21 88 c7 ca |....q...|!...!...|
|00000940| 21 88 cb c8 cc 5c 22 88 | cb c9 cd 5c 22 88 ce 16 |!....\".|...\"...|
|00000950| 5c 6e cf d0 0e 11 5c 22 | ab 87 d2 d3 d4 09 44 5c |\n....\"|......D\|
|00000960| 22 87 d5 5c 6e 0b 5c 22 | d6 0c 21 1e 17 1e 18 d9 |"..\n.\"|..!.....|
|00000970| 0e 18 da db 23 88 0e 18 | 0e 17 42 0e 11 42 16 11 |....#...|..B..B..|
|00000980| dc 0e 17 21 88 dd c5 09 | 21 50 16 1e c7 df 21 88 |...!....|!P....!.|
|00000990| c7 c9 21 88 c7 ca 21 88 | c7 e0 21 88 cb df e1 5c |..!...!.|..!....\|
|000009a0| 22 88 cb c9 e2 5c 22 88 | e3 16 5c 6e 0e 18 16 24 |"....\".|..\n...$|
|000009b0| e5 09 5c 6e 0b 23 88 cb | e0 e6 5c 22 88 e7 e8 21 |..\n.#..|..\"...!|
|000009c0| 88 0e 17 2a 87 22 20 5b | 66 69 6c 65 2d 70 61 72 |...*." [|file-par|
|000009d0| 74 2d 62 75 66 66 65 72 | 2d 66 72 6f 6d 2d 61 72 |t-buffer|-from-ar|
|000009e0| 67 20 62 75 66 66 65 72 | 20 73 74 61 72 74 20 65 |g buffer| start e|
|000009f0| 6e 64 20 6e 61 6d 65 20 | 62 75 66 66 65 72 2d 6e |nd name |buffer-n|
|00000a00| 61 6d 65 20 22 2d 70 61 | 72 74 22 20 6d 61 6b 65 |ame "-pa|rt" make|
|00000a10| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00000a20| 77 72 69 74 65 2d 63 6f | 6e 74 65 6e 74 73 2d 68 |write-co|ntents-h|
|00000a30| 6f 6f 6b 73 20 6b 69 6c | 6c 2d 62 75 66 66 65 72 |ooks kil|l-buffer|
|00000a40| 2d 68 6f 6f 6b 20 72 65 | 76 65 72 74 2d 62 75 66 |-hook re|vert-buf|
|00000a50| 66 65 72 2d 66 75 6e 63 | 74 69 6f 6e 20 61 64 64 |fer-func|tion add|
|00000a60| 2d 68 6f 6f 6b 20 77 72 | 69 74 65 2d 6d 61 73 74 |-hook wr|ite-mast|
|00000a70| 65 72 2d 62 75 66 66 65 | 72 2d 68 6f 6f 6b 20 6b |er-buffe|r-hook k|
|00000a80| 69 6c 6c 2d 6d 61 73 74 | 65 72 2d 62 75 66 66 65 |ill-mast|er-buffe|
|00000a90| 72 2d 68 6f 6f 6b 20 72 | 65 76 65 72 74 2d 6d 61 |r-hook r|evert-ma|
|00000aa0| 73 74 65 72 2d 62 75 66 | 66 65 72 2d 66 75 6e 63 |ster-buf|fer-func|
|00000ab0| 74 69 6f 6e 20 66 69 6c | 65 2d 70 61 72 74 2d 6d |tion fil|e-part-m|
|00000ac0| 61 70 74 72 75 65 20 23 | 5b 28 78 29 20 22 c0 09 |aptrue #|[(x) "..|
|00000ad0| 40 21 c2 09 40 21 1b 89 | 1c a7 ad 99 0b a7 ad 95 |@!..@!..|........|
|00000ae0| 0c 0d 58 ab 85 0b 0d 58 | ae 8a 0c 0e 06 59 ad 84 |..X....X|.....Y..|
|00000af0| 0b 0e 06 59 3f 2a 87 22 | 20 5b 65 78 74 65 6e 74 |...Y?*."| [extent|
|00000b00| 2d 73 74 61 72 74 2d 70 | 6f 73 69 74 69 6f 6e 20 |-start-p|osition |
|00000b10| 78 20 65 78 74 65 6e 74 | 2d 65 6e 64 2d 70 6f 73 |x extent|-end-pos|
|00000b20| 69 74 69 6f 6e 20 65 20 | 62 20 73 74 61 72 74 20 |ition e |b start |
|00000b30| 65 6e 64 5d 20 34 5d 20 | 66 69 6c 65 2d 70 61 72 |end] 4] |file-par|
|00000b40| 74 2d 65 78 74 65 6e 74 | 2d 61 6c 69 73 74 20 73 |t-extent|-alist s|
|00000b50| 69 67 6e 61 6c 20 66 69 | 6c 65 2d 70 61 72 74 2d |ignal fi|le-part-|
|00000b60| 65 72 72 6f 72 20 22 4f | 76 65 72 6c 61 70 70 69 |error "O|verlappi|
|00000b70| 6e 67 20 66 69 6c 65 20 | 70 61 72 74 73 20 6e 6f |ng file |parts no|
|00000b80| 74 20 61 6c 6c 6f 77 65 | 64 22 20 6d 61 6b 65 2d |t allowe|d" make-|
|00000b90| 65 78 74 65 6e 74 20 67 | 65 6e 65 72 61 74 65 2d |extent g|enerate-|
|00000ba0| 6e 65 77 2d 62 75 66 66 | 65 72 20 66 69 6c 65 62 |new-buff|er fileb|
|00000bb0| 75 66 20 78 20 73 65 74 | 2d 65 78 74 65 6e 74 2d |uf x set|-extent-|
|00000bc0| 70 72 6f 70 65 72 74 79 | 20 72 65 61 64 2d 6f 6e |property| read-on|
|00000bd0| 6c 79 20 74 20 73 77 69 | 74 63 68 2d 74 6f 2d 62 |ly t swi|tch-to-b|
|00000be0| 75 66 66 65 72 20 22 46 | 69 6c 65 20 70 61 72 74 |uffer "F|ile part|
|00000bf0| 20 6f 6e 20 22 20 62 75 | 66 66 65 72 2d 66 69 6c | on " bu|ffer-fil|
|00000c00| 65 2d 6e 61 6d 65 20 77 | 72 69 74 65 2d 66 69 6c |e-name w|rite-fil|
|00000c10| 65 2d 68 6f 6f 6b 73 20 | 66 69 72 73 74 2d 63 68 |e-hooks |first-ch|
|00000c20| 61 6e 67 65 2d 68 6f 6f | 6b 20 77 72 69 74 65 2d |ange-hoo|k write-|
|00000c30| 66 69 6c 65 2d 70 61 72 | 74 2d 68 6f 6f 6b 20 6b |file-par|t-hook k|
|00000c40| 69 6c 6c 2d 66 69 6c 65 | 2d 70 61 72 74 2d 68 6f |ill-file|-part-ho|
|00000c50| 6f 6b 20 72 65 76 65 72 | 74 2d 66 69 6c 65 2d 70 |ok rever|t-file-p|
|00000c60| 61 72 74 2d 66 75 6e 63 | 74 69 6f 6e 20 66 69 6c |art-func|tion fil|
|00000c70| 65 2d 70 61 72 74 2d 6d | 61 73 74 65 72 2d 65 78 |e-part-m|aster-ex|
|00000c80| 74 65 6e 74 20 69 6e 73 | 65 72 74 2d 62 75 66 66 |tent ins|ert-buff|
|00000c90| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 20 66 69 6c |er-subst|ring fil|
|00000ca0| 65 2d 70 61 72 74 2d 66 | 69 72 73 74 2d 63 68 61 |e-part-f|irst-cha|
|00000cb0| 6e 67 65 2d 68 6f 6f 6b | 20 73 65 74 2d 62 75 66 |nge-hook| set-buf|
|00000cc0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 20 6e |fer-modi|fied-p n|
|00000cd0| 69 6c 5d 20 34 20 28 23 | 24 20 2e 20 31 36 32 33 |il] 4 (#|$ . 1623|
|00000ce0| 29 20 22 72 5c 6e 73 4e | 61 6d 65 20 6f 66 20 66 |) "r\nsN|ame of f|
|00000cf0| 69 6c 65 20 70 61 72 74 | 3a 20 22 5d 29 0a 23 40 |ile part|: "]).#@|
|00000d00| 31 32 31 20 48 6f 6f 6b | 20 74 6f 20 62 65 20 63 |121 Hook| to be c|
|00000d10| 61 6c 6c 65 64 20 77 68 | 65 6e 20 61 20 66 69 6c |alled wh|en a fil|
|00000d20| 65 2d 70 61 72 74 20 62 | 75 66 66 65 72 20 69 73 |e-part b|uffer is|
|00000d30| 20 6b 69 6c 6c 65 64 2e | 0a 52 65 6d 6f 76 65 73 | killed.|.Removes|
|00000d40| 20 74 68 65 20 66 69 6c | 65 20 70 61 72 74 20 66 | the fil|e part f|
|00000d50| 72 6f 6d 20 74 68 65 20 | 6d 61 73 74 65 72 20 62 |rom the |master b|
|00000d60| 75 66 66 65 72 27 73 20 | 6c 69 73 74 20 6f 66 20 |uffer's |list of |
|00000d70| 66 69 6c 65 20 70 61 72 | 74 73 2e 1f 0a 28 64 65 |file par|ts...(de|
|00000d80| 66 61 6c 69 61 73 20 27 | 6b 69 6c 6c 2d 66 69 6c |falias '|kill-fil|
|00000d90| 65 2d 70 61 72 74 2d 68 | 6f 6f 6b 20 23 5b 6e 69 |e-part-h|ook #[ni|
|00000da0| 6c 20 22 08 70 19 89 1a | ad 91 8a c3 5c 6e 21 71 |l ".p...|....\n!q|
|00000db0| 88 c4 5c 6e 09 42 0d 5c | 22 15 c6 5c 6e 21 29 2a |..\n.B.\|"..\n!)*|
|00000dc0| 87 22 20 5b 66 69 6c 65 | 2d 70 61 72 74 2d 6d 61 |." [file|-part-ma|
|00000dd0| 73 74 65 72 2d 65 78 74 | 65 6e 74 20 62 75 66 20 |ster-ext|ent buf |
|00000de0| 78 20 65 78 74 65 6e 74 | 2d 62 75 66 66 65 72 20 |x extent|-buffer |
|00000df0| 64 65 6c 65 74 65 20 66 | 69 6c 65 2d 70 61 72 74 |delete f|ile-part|
|00000e00| 2d 65 78 74 65 6e 74 2d | 61 6c 69 73 74 20 64 65 |-extent-|alist de|
|00000e10| 6c 65 74 65 2d 65 78 74 | 65 6e 74 5d 20 34 20 28 |lete-ext|ent] 4 (|
|00000e20| 23 24 20 2e 20 33 33 33 | 32 29 5d 29 0a 23 40 32 |#$ . 333|2)]).#@2|
|00000e30| 37 33 20 4b 69 6c 6c 20 | 61 6c 6c 20 66 69 6c 65 |73 Kill |all file|
|00000e40| 20 70 61 72 74 73 20 6f | 6e 20 62 75 66 66 65 72 | parts o|n buffer|
|00000e50| 20 42 55 46 4e 41 4d 45 | 2e 0a 54 68 65 20 61 72 | BUFNAME|..The ar|
|00000e60| 67 75 6d 65 6e 74 20 6d | 61 79 20 62 65 20 61 20 |gument m|ay be a |
|00000e70| 62 75 66 66 65 72 20 6f | 72 20 74 68 65 20 6e 61 |buffer o|r the na|
|00000e80| 6d 65 20 6f 66 20 61 20 | 62 75 66 66 65 72 2e 0a |me of a |buffer..|
|00000e90| 49 66 20 6f 6e 65 20 6f | 72 20 6d 6f 72 65 20 6f |If one o|r more o|
|00000ea0| 66 20 74 68 65 20 66 69 | 6c 65 20 70 61 72 74 73 |f the fi|le parts|
|00000eb0| 20 6e 65 65 64 73 20 73 | 61 76 69 6e 67 2c 20 70 | needs s|aving, p|
|00000ec0| 72 6f 6d 70 74 73 20 66 | 6f 72 0a 63 6f 6e 66 69 |rompts f|or.confi|
|00000ed0| 72 6d 61 74 69 6f 6e 20 | 75 6e 6c 65 73 73 20 6f |rmation |unless o|
|00000ee0| 70 74 69 6f 6e 61 6c 20 | 73 65 63 6f 6e 64 20 61 |ptional |second a|
|00000ef0| 72 67 75 6d 65 6e 74 20 | 4e 4f 2d 41 53 4b 20 69 |rgument |NO-ASK i|
|00000f00| 73 20 6e 6f 6e 2d 6e 69 | 6c 2e 0a 42 55 46 46 45 |s non-ni|l..BUFFE|
|00000f10| 52 20 64 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 |R defaul|ts to th|
|00000f20| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00000f30| 20 69 66 20 6e 6f 74 20 | 73 70 65 63 69 66 69 65 | if not |specifie|
|00000f40| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6b |d...(def|alias 'k|
|00000f50| 69 6c 6c 2d 61 6c 6c 2d | 66 69 6c 65 2d 70 61 72 |ill-all-|file-par|
|00000f60| 74 73 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |ts #[(&o|ptional |
|00000f70| 62 75 66 6e 61 6d 65 20 | 6e 6f 2d 61 73 6b 29 20 |bufname |no-ask) |
|00000f80| 22 c0 09 21 11 8a 09 71 | 88 5c 6e ac 8a c3 09 21 |"..!...q|.\n....!|
|00000f90| ab 85 c4 c5 21 ad 85 c6 | c7 0e 08 5c 22 29 87 22 |....!...|...\")."|
|00000fa0| 20 5b 66 69 6c 65 2d 70 | 61 72 74 2d 62 75 66 66 | [file-p|art-buff|
|00000fb0| 65 72 2d 66 72 6f 6d 2d | 61 72 67 20 62 75 66 6e |er-from-|arg bufn|
|00000fc0| 61 6d 65 20 6e 6f 2d 61 | 73 6b 20 66 69 6c 65 2d |ame no-a|sk file-|
|00000fd0| 70 61 72 74 73 2d 6d 6f | 64 69 66 69 65 64 2d 70 |parts-mo|dified-p|
|00000fe0| 20 79 2d 6f 72 2d 6e 2d | 70 20 22 42 75 66 66 65 | y-or-n-|p "Buffe|
|00000ff0| 72 20 68 61 73 20 6d 6f | 64 69 66 69 65 64 20 66 |r has mo|dified f|
|00001000| 69 6c 65 20 70 61 72 74 | 73 3b 20 6b 69 6c 6c 20 |ile part|s; kill |
|00001010| 61 6e 79 77 61 79 3f 20 | 22 20 6d 61 70 63 61 72 |anyway? |" mapcar|
|00001020| 20 23 5b 28 78 29 20 22 | 08 41 71 88 c1 c2 21 88 | #[(x) "|.Aq...!.|
|00001030| c3 08 41 21 87 22 20 5b | 78 20 73 65 74 2d 62 75 |..A!." [|x set-bu|
|00001040| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 20 |ffer-mod|ified-p |
|00001050| 6e 69 6c 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 5d |nil kill|-buffer]|
|00001060| 20 32 5d 20 66 69 6c 65 | 2d 70 61 72 74 2d 65 78 | 2] file|-part-ex|
|00001070| 74 65 6e 74 2d 61 6c 69 | 73 74 5d 20 33 20 28 23 |tent-ali|st] 3 (#|
|00001080| 24 20 2e 20 33 36 33 35 | 29 20 22 62 22 5d 29 0a |$ . 3635|) "b"]).|
|00001090| 23 40 38 34 20 48 6f 6f | 6b 20 74 6f 20 62 65 20 |#@84 Hoo|k to be |
|000010a0| 63 61 6c 6c 65 64 20 77 | 68 65 6e 20 61 20 6d 61 |called w|hen a ma|
|000010b0| 73 74 65 72 20 62 75 66 | 66 65 72 20 69 73 20 6b |ster buf|fer is k|
|000010c0| 69 6c 6c 65 64 2e 0a 4b | 69 6c 6c 73 20 74 68 65 |illed..K|ills the|
|000010d0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 66 69 6c 65 | associa|ted file|
|000010e0| 20 70 61 72 74 73 2e 1f | 0a 28 64 65 66 61 6c 69 | parts..|.(defali|
|000010f0| 61 73 20 27 6b 69 6c 6c | 2d 6d 61 73 74 65 72 2d |as 'kill|-master-|
|00001100| 62 75 66 66 65 72 2d 68 | 6f 6f 6b 20 23 5b 6e 69 |buffer-h|ook #[ni|
|00001110| 6c 20 22 c0 70 c1 5c 22 | 87 22 20 5b 6b 69 6c 6c |l ".p.\"|." [kill|
|00001120| 2d 61 6c 6c 2d 66 69 6c | 65 2d 70 61 72 74 73 20 |-all-fil|e-parts |
|00001130| 74 5d 20 33 20 28 23 24 | 20 2e 20 34 32 34 35 29 |t] 3 (#$| . 4245)|
|00001140| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 66 69 |]).(defa|lias 'fi|
|00001150| 6c 65 2d 70 61 72 74 2d | 63 68 65 63 6b 2d 61 74 |le-part-|check-at|
|00001160| 74 61 63 68 65 64 20 23 | 5b 28 78 29 20 22 08 ac |tached #|[(x) "..|
|00001170| 82 c1 87 c2 08 c3 5c 22 | ab 8e c4 20 88 c1 15 c1 |......\"|... ....|
|00001180| 16 06 c7 c8 21 88 c1 87 | c9 87 22 20 5b 78 20 6e |....!...|.." [x n|
|00001190| 69 6c 20 65 78 74 65 6e | 74 2d 70 72 6f 70 65 72 |il exten|t-proper|
|000011a0| 74 79 20 64 65 74 61 63 | 68 65 64 20 6b 69 6c 6c |ty detac|hed kill|
|000011b0| 2d 66 69 6c 65 2d 70 61 | 72 74 2d 68 6f 6f 6b 20 |-file-pa|rt-hook |
|000011c0| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|000011d0| 20 66 69 6c 65 2d 70 61 | 72 74 2d 6d 61 73 74 65 | file-pa|rt-maste|
|000011e0| 72 2d 65 78 74 65 6e 74 | 20 6d 65 73 73 61 67 65 |r-extent| message|
|000011f0| 20 22 46 69 6c 65 20 70 | 61 72 74 20 68 61 73 20 | "File p|art has |
|00001200| 62 65 63 6f 6d 65 20 64 | 65 74 61 63 68 65 64 2e |become d|etached.|
|00001210| 22 20 74 5d 20 33 5d 29 | 0a 23 40 39 30 20 48 6f |" t] 3])|.#@90 Ho|
|00001220| 6f 6b 20 74 6f 20 62 65 | 20 63 61 6c 6c 65 64 20 |ok to be| called |
|00001230| 77 68 65 6e 20 61 20 66 | 69 6c 65 20 70 61 72 74 |when a f|ile part|
|00001240| 20 69 73 20 73 61 76 65 | 64 2e 0a 53 61 76 65 73 | is save|d..Saves|
|00001250| 20 74 68 65 20 66 69 6c | 65 20 70 61 72 74 20 69 | the fil|e part i|
|00001260| 6e 74 6f 20 74 68 65 20 | 6d 61 73 74 65 72 20 62 |nto the |master b|
|00001270| 75 66 66 65 72 2e 1f 0a | 28 64 65 66 61 6c 69 61 |uffer...|(defalia|
|00001280| 73 20 27 77 72 69 74 65 | 2d 66 69 6c 65 2d 70 61 |s 'write|-file-pa|
|00001290| 72 74 2d 68 6f 6f 6b 20 | 23 5b 6e 69 6c 20 22 08 |rt-hook |#[nil ".|
|000012a0| 70 64 65 5a 08 3f 3f 19 | 1a 1b 1c c5 0c 21 ab c2 |pdeZ.??.|.....!..|
|000012b0| c6 0c 21 c7 0c 21 1e 08 | 1e 09 8a ca 0c 21 71 88 |..!..!..|.....!q.|
|000012c0| cb 0c cc cd 23 88 0e 09 | 62 88 ce 0b 21 88 5c 6e |....#...|b...!.\n|
|000012d0| 0e 09 5c 5c 5c 6e 0e 08 | 5c 5c 7c 88 cb 0c cc cf |..\\\n..|\\|.....|
|000012e0| 23 88 0b 71 88 d0 cd 21 | 88 d1 d2 d3 0b 21 d3 ca |#..q...!|.....!..|
|000012f0| 0c 21 21 23 88 2b 09 2c | 87 22 20 5b 66 69 6c 65 |.!!#.+.,|." [file|
|00001300| 2d 70 61 72 74 2d 6d 61 | 73 74 65 72 2d 65 78 74 |-part-ma|ster-ext|
|00001310| 65 6e 74 20 72 65 74 76 | 61 6c 20 6c 65 6e 20 62 |ent retv|al len b|
|00001320| 75 66 20 78 20 66 69 6c | 65 2d 70 61 72 74 2d 63 |uf x fil|e-part-c|
|00001330| 68 65 63 6b 2d 61 74 74 | 61 63 68 65 64 20 65 78 |heck-att|ached ex|
|00001340| 74 65 6e 74 2d 73 74 61 | 72 74 2d 70 6f 73 69 74 |tent-sta|rt-posit|
|00001350| 69 6f 6e 20 65 78 74 65 | 6e 74 2d 65 6e 64 2d 70 |ion exte|nt-end-p|
|00001360| 6f 73 69 74 69 6f 6e 20 | 65 20 62 20 65 78 74 65 |osition |e b exte|
|00001370| 6e 74 2d 62 75 66 66 65 | 72 20 73 65 74 2d 65 78 |nt-buffe|r set-ex|
|00001380| 74 65 6e 74 2d 70 72 6f | 70 65 72 74 79 20 72 65 |tent-pro|perty re|
|00001390| 61 64 2d 6f 6e 6c 79 20 | 6e 69 6c 20 69 6e 73 65 |ad-only |nil inse|
|000013a0| 72 74 2d 62 75 66 66 65 | 72 2d 73 75 62 73 74 72 |rt-buffe|r-substr|
|000013b0| 69 6e 67 20 74 20 73 65 | 74 2d 62 75 66 66 65 72 |ing t se|t-buffer|
|000013c0| 2d 6d 6f 64 69 66 69 65 | 64 2d 70 20 6d 65 73 73 |-modifie|d-p mess|
|000013d0| 61 67 65 20 22 57 72 6f | 74 65 20 66 69 6c 65 20 |age "Wro|te file |
|000013e0| 70 61 72 74 20 25 73 20 | 6f 6e 20 25 73 22 20 62 |part %s |on %s" b|
|000013f0| 75 66 66 65 72 2d 6e 61 | 6d 65 5d 20 36 20 28 23 |uffer-na|me] 6 (#|
|00001400| 24 20 2e 20 34 36 33 38 | 29 5d 29 0a 23 40 31 35 |$ . 4638|)]).#@15|
|00001410| 32 20 48 6f 6f 6b 20 74 | 6f 20 62 65 20 63 61 6c |2 Hook t|o be cal|
|00001420| 6c 65 64 20 77 68 65 6e | 20 61 20 6d 61 73 74 65 |led when| a maste|
|00001430| 72 20 62 75 66 66 65 72 | 20 69 73 20 73 61 76 65 |r buffer| is save|
|00001440| 64 2e 0a 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |d..If th|ere are |
|00001450| 6d 6f 64 69 66 69 65 64 | 20 66 69 6c 65 20 70 61 |modified| file pa|
|00001460| 72 74 73 20 6f 6e 20 74 | 68 65 20 62 75 66 66 65 |rts on t|he buffe|
|00001470| 72 2c 20 6f 70 74 69 6f | 6e 61 6c 6c 79 0a 73 61 |r, optio|nally.sa|
|00001480| 76 65 73 20 74 68 65 20 | 66 69 6c 65 20 70 61 72 |ves the |file par|
|00001490| 74 73 20 62 61 63 6b 20 | 69 6e 74 6f 20 74 68 65 |ts back |into the|
|000014a0| 20 62 75 66 66 65 72 2e | 1f 0a 28 64 65 66 61 6c | buffer.|..(defal|
|000014b0| 69 61 73 20 27 77 72 69 | 74 65 2d 6d 61 73 74 65 |ias 'wri|te-maste|
|000014c0| 72 2d 62 75 66 66 65 72 | 2d 68 6f 6f 6b 20 23 5b |r-buffer|-hook #[|
|000014d0| 6e 69 6c 20 22 c0 20 88 | c1 87 22 20 5b 73 61 76 |nil ". .|.." [sav|
|000014e0| 65 2d 73 6f 6d 65 2d 66 | 69 6c 65 2d 70 61 72 74 |e-some-f|ile-part|
|000014f0| 2d 62 75 66 66 65 72 73 | 20 6e 69 6c 5d 20 31 20 |-buffers| nil] 1 |
|00001500| 28 23 24 20 2e 20 35 31 | 33 38 29 5d 29 0a 23 40 |(#$ . 51|38)]).#@|
|00001510| 32 30 35 20 53 61 76 65 | 20 73 6f 6d 65 20 6d 6f |205 Save| some mo|
|00001520| 64 69 66 69 65 64 20 66 | 69 6c 65 2d 70 61 72 74 |dified f|ile-part|
|00001530| 20 62 75 66 66 65 72 73 | 20 6f 6e 20 42 55 46 46 | buffers| on BUFF|
|00001540| 45 52 2e 20 20 41 73 6b | 73 20 75 73 65 72 20 61 |ER. Ask|s user a|
|00001550| 62 6f 75 74 20 65 61 63 | 68 20 6f 6e 65 2e 0a 4f |bout eac|h one..O|
|00001560| 70 74 69 6f 6e 61 6c 20 | 61 72 67 75 6d 65 6e 74 |ptional |argument|
|00001570| 20 28 74 68 65 20 70 72 | 65 66 69 78 29 20 6e 6f | (the pr|efix) no|
|00001580| 6e 2d 6e 69 6c 20 6d 65 | 61 6e 73 20 73 61 76 65 |n-nil me|ans save|
|00001590| 20 61 6c 6c 20 77 69 74 | 68 20 6e 6f 20 71 75 65 | all wit|h no que|
|000015a0| 73 74 69 6f 6e 73 2e 0a | 42 55 46 46 45 52 20 64 |stions..|BUFFER d|
|000015b0| 65 66 61 75 6c 74 73 20 | 74 6f 20 74 68 65 20 63 |efaults |to the c|
|000015c0| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 20 69 66 |urrent b|uffer if|
|000015d0| 20 6e 6f 74 20 73 70 65 | 63 69 66 69 65 64 2e 1f | not spe|cified..|
|000015e0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 61 76 65 |.(defali|as 'save|
|000015f0| 2d 73 6f 6d 65 2d 66 69 | 6c 65 2d 70 61 72 74 2d |-some-fi|le-part-|
|00001600| 62 75 66 66 65 72 73 20 | 23 5b 28 26 6f 70 74 69 |buffers |#[(&opti|
|00001610| 6f 6e 61 6c 20 61 72 67 | 20 62 75 66 66 65 72 29 |onal arg| buffer)|
|00001620| 20 22 c0 09 21 11 5c 6e | c3 09 21 1c 89 1d ad aa | "..!.\n|..!.....|
|00001630| 0d 40 41 1e 06 c7 0e 06 | 21 ab 97 0e 08 ac 8e c9 |.@A.....|!.......|
|00001640| ca cb c3 0e 06 21 c3 09 | 21 23 21 ab 85 cc cd ce |.....!..|!#!.....|
|00001650| 8f 88 29 0d 41 89 15 ac | 57 cc 2a 87 22 20 5b 66 |..).A...|W.*." [f|
|00001660| 69 6c 65 2d 70 61 72 74 | 2d 62 75 66 66 65 72 2d |ile-part|-buffer-|
|00001670| 66 72 6f 6d 2d 61 72 67 | 20 62 75 66 66 65 72 20 |from-arg| buffer |
|00001680| 66 69 6c 65 2d 70 61 72 | 74 2d 65 78 74 65 6e 74 |file-par|t-extent|
|00001690| 2d 61 6c 69 73 74 20 62 | 75 66 66 65 72 2d 6e 61 |-alist b|uffer-na|
|000016a0| 6d 65 20 6e 61 6d 65 20 | 61 6c 69 73 74 20 62 75 |me name |alist bu|
|000016b0| 66 20 62 75 66 66 65 72 | 2d 6d 6f 64 69 66 69 65 |f buffer|-modifie|
|000016c0| 64 2d 70 20 61 72 67 20 | 79 2d 6f 72 2d 6e 2d 70 |d-p arg |y-or-n-p|
|000016d0| 20 66 6f 72 6d 61 74 20 | 22 53 61 76 65 20 66 69 | format |"Save fi|
|000016e0| 6c 65 20 70 61 72 74 20 | 25 73 20 6f 6e 20 25 73 |le part |%s on %s|
|000016f0| 3f 20 22 20 6e 69 6c 20 | 28 62 79 74 65 2d 63 6f |? " nil |(byte-co|
|00001700| 64 65 20 22 8a 08 71 88 | c1 20 88 29 c1 87 22 20 |de "..q.|. .).." |
|00001710| 5b 62 75 66 20 73 61 76 | 65 2d 62 75 66 66 65 72 |[buf sav|e-buffer|
|00001720| 5d 20 31 29 20 28 28 65 | 72 72 6f 72 29 29 5d 20 |] 1) ((e|rror))] |
|00001730| 37 20 28 23 24 20 2e 20 | 35 33 39 36 29 20 22 70 |7 (#$ . |5396) "p|
|00001740| 22 5d 29 0a 23 40 31 31 | 34 20 52 65 74 75 72 6e |"]).#@11|4 Return|
|00001750| 20 74 72 75 65 20 69 66 | 20 42 55 46 46 45 52 20 | true if| BUFFER |
|00001760| 68 61 73 20 61 6e 79 20 | 6d 6f 64 69 66 69 65 64 |has any |modified|
|00001770| 20 66 69 6c 65 20 70 61 | 72 74 73 20 6f 6e 20 69 | file pa|rts on i|
|00001780| 74 2e 0a 42 55 46 46 45 | 52 20 64 65 66 61 75 6c |t..BUFFE|R defaul|
|00001790| 74 73 20 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e |ts to th|e curren|
|000017a0| 74 20 62 75 66 66 65 72 | 20 69 66 20 6e 6f 74 20 |t buffer| if not |
|000017b0| 73 70 65 63 69 66 69 65 | 64 2e 1f 0a 28 64 65 66 |specifie|d...(def|
|000017c0| 61 6c 69 61 73 20 27 66 | 69 6c 65 2d 70 61 72 74 |alias 'f|ile-part|
|000017d0| 73 2d 6d 6f 64 69 66 69 | 65 64 2d 70 20 23 5b 28 |s-modifi|ed-p #[(|
|000017e0| 26 6f 70 74 69 6f 6e 61 | 6c 20 62 75 66 66 65 72 |&optiona|l buffer|
|000017f0| 29 20 22 8a 08 ab 83 08 | 71 88 c1 c2 0b 5c 22 29 |) ".....|q....\")|
|00001800| 87 22 20 5b 62 75 66 66 | 65 72 20 66 69 6c 65 2d |." [buff|er file-|
|00001810| 70 61 72 74 2d 6d 61 70 | 74 72 75 65 20 23 5b 28 |part-map|true #[(|
|00001820| 78 29 20 22 c0 09 41 21 | 87 22 20 5b 62 75 66 66 |x) "..A!|." [buff|
|00001830| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 78 5d |er-modif|ied-p x]|
|00001840| 20 32 5d 20 66 69 6c 65 | 2d 70 61 72 74 2d 65 78 | 2] file|-part-ex|
|00001850| 74 65 6e 74 2d 61 6c 69 | 73 74 5d 20 33 20 28 23 |tent-ali|st] 3 (#|
|00001860| 24 20 2e 20 35 39 36 32 | 29 5d 29 0a 23 40 39 35 |$ . 5962|)]).#@95|
|00001870| 20 48 6f 6f 6b 20 74 6f | 20 62 65 20 63 61 6c 6c | Hook to| be call|
|00001880| 65 64 20 77 68 65 6e 20 | 61 20 66 69 6c 65 20 70 |ed when |a file p|
|00001890| 61 72 74 20 69 73 20 72 | 65 76 65 72 74 65 64 2e |art is r|everted.|
|000018a0| 0a 52 65 76 65 72 74 73 | 20 74 68 65 20 66 69 6c |.Reverts| the fil|
|000018b0| 65 20 70 61 72 74 20 66 | 72 6f 6d 20 74 68 65 20 |e part f|rom the |
|000018c0| 6d 61 73 74 65 72 20 62 | 75 66 66 65 72 2e 1f 0a |master b|uffer...|
|000018d0| 28 64 65 66 61 6c 69 61 | 73 20 27 72 65 76 65 72 |(defalia|s 'rever|
|000018e0| 74 2d 66 69 6c 65 2d 70 | 61 72 74 2d 66 75 6e 63 |t-file-p|art-func|
|000018f0| 74 69 6f 6e 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |tion #[(|&optiona|
|00001900| 6c 20 63 68 65 63 6b 2d | 61 75 74 6f 20 6e 6f 63 |l check-|auto noc|
|00001910| 6f 6e 66 69 72 6d 29 20 | 22 08 19 c2 09 21 ad b1 |onfirm) |"....!..|
|00001920| c3 09 21 1c 0d ac 8a c6 | c7 c8 c9 0c 21 5c 22 21 |..!.....|....!\"!|
|00001930| ad 9f ca 20 88 cb 0c 21 | 1e 0c cd 0c ce 09 21 cf |... ...!|......!.|
|00001940| 09 21 23 88 d0 d1 21 88 | 8a 0c 71 88 d0 0e 0c 21 |.!#...!.|..q....!|
|00001950| 2a 29 29 87 22 20 5b 66 | 69 6c 65 2d 70 61 72 74 |*))." [f|ile-part|
|00001960| 2d 6d 61 73 74 65 72 2d | 65 78 74 65 6e 74 20 78 |-master-|extent x|
|00001970| 20 66 69 6c 65 2d 70 61 | 72 74 2d 63 68 65 63 6b | file-pa|rt-check|
|00001980| 2d 61 74 74 61 63 68 65 | 64 20 65 78 74 65 6e 74 |-attache|d extent|
|00001990| 2d 62 75 66 66 65 72 20 | 6d 61 73 74 65 72 20 6e |-buffer |master n|
|000019a0| 6f 63 6f 6e 66 69 72 6d | 20 79 65 73 2d 6f 72 2d |oconfirm| yes-or-|
|000019b0| 6e 6f 2d 70 20 66 6f 72 | 6d 61 74 20 22 52 65 76 |no-p for|mat "Rev|
|000019c0| 65 72 74 20 66 69 6c 65 | 20 70 61 72 74 20 66 72 |ert file| part fr|
|000019d0| 6f 6d 20 6d 61 73 74 65 | 72 20 62 75 66 66 65 72 |om maste|r buffer|
|000019e0| 20 25 73 3f 20 22 20 62 | 75 66 66 65 72 2d 6e 61 | %s? " b|uffer-na|
|000019f0| 6d 65 20 65 72 61 73 65 | 2d 62 75 66 66 65 72 20 |me erase|-buffer |
|00001a00| 62 75 66 66 65 72 2d 6d | 6f 64 69 66 69 65 64 2d |buffer-m|odified-|
|00001a10| 70 20 6d 6f 64 20 69 6e | 73 65 72 74 2d 62 75 66 |p mod in|sert-buf|
|00001a20| 66 65 72 2d 73 75 62 73 | 74 72 69 6e 67 20 65 78 |fer-subs|tring ex|
|00001a30| 74 65 6e 74 2d 73 74 61 | 72 74 2d 70 6f 73 69 74 |tent-sta|rt-posit|
|00001a40| 69 6f 6e 20 65 78 74 65 | 6e 74 2d 65 6e 64 2d 70 |ion exte|nt-end-p|
|00001a50| 6f 73 69 74 69 6f 6e 20 | 73 65 74 2d 62 75 66 66 |osition |set-buff|
|00001a60| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 6e 69 |er-modif|ied-p ni|
|00001a70| 6c 5d 20 35 20 28 23 24 | 20 2e 20 36 32 35 37 29 |l] 5 (#$| . 6257)|
|00001a80| 5d 29 0a 23 40 31 34 39 | 20 48 6f 6f 6b 20 74 6f |]).#@149| Hook to|
|00001a90| 20 62 65 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 | be call|ed when |
|00001aa0| 61 20 6d 61 73 74 65 72 | 2d 62 75 66 66 65 72 20 |a master|-buffer |
|00001ab0| 69 73 20 72 65 76 65 72 | 74 65 64 2e 0a 4d 61 6b |is rever|ted..Mak|
|00001ac0| 65 73 20 73 75 72 65 20 | 74 68 65 20 75 73 65 72 |es sure |the user|
|00001ad0| 20 69 73 20 61 77 61 72 | 65 20 74 68 61 74 20 74 | is awar|e that t|
|00001ae0| 68 65 20 66 69 6c 65 20 | 70 61 72 74 73 20 77 69 |he file |parts wi|
|00001af0| 6c 6c 20 62 65 63 6f 6d | 65 20 64 65 74 61 63 68 |ll becom|e detach|
|00001b00| 65 64 2c 0a 74 68 65 6e | 20 70 72 6f 63 65 65 64 |ed,.then| proceed|
|00001b10| 73 20 61 73 20 6e 6f 72 | 6d 61 6c 2e 1f 0a 28 64 |s as nor|mal...(d|
|00001b20| 65 66 61 6c 69 61 73 20 | 27 72 65 76 65 72 74 2d |efalias |'revert-|
|00001b30| 6d 61 73 74 65 72 2d 62 | 75 66 66 65 72 2d 66 75 |master-b|uffer-fu|
|00001b40| 6e 63 74 69 6f 6e 20 23 | 5b 28 26 6f 70 74 69 6f |nction #|[(&optio|
|00001b50| 6e 61 6c 20 63 68 65 63 | 6b 2d 61 75 74 6f 20 6e |nal chec|k-auto n|
|00001b60| 6f 63 6f 6e 66 69 72 6d | 29 20 22 08 ac 8b 09 ab |oconfirm|) ".....|
|00001b70| 88 c2 c3 21 88 c4 c5 21 | 88 c6 1e 07 c8 0e 09 3f |...!...!|.......?|
|00001b80| 08 5c 22 29 87 22 20 5b | 6e 6f 63 6f 6e 66 69 72 |.\")." [|noconfir|
|00001b90| 6d 20 66 69 6c 65 2d 70 | 61 72 74 2d 65 78 74 65 |m file-p|art-exte|
|00001ba0| 6e 74 2d 61 6c 69 73 74 | 20 6d 65 73 73 61 67 65 |nt-alist| message|
|00001bb0| 20 22 57 61 72 6e 69 6e | 67 3a 20 66 69 6c 65 20 | "Warnin|g: file |
|00001bc0| 70 61 72 74 73 20 77 69 | 6c 6c 20 62 65 63 6f 6d |parts wi|ll becom|
|00001bd0| 65 20 64 65 74 61 63 68 | 65 64 2e 22 20 73 6c 65 |e detach|ed." sle|
|00001be0| 65 70 2d 66 6f 72 20 32 | 20 6e 69 6c 20 72 65 76 |ep-for 2| nil rev|
|00001bf0| 65 72 74 2d 62 75 66 66 | 65 72 2d 66 75 6e 63 74 |ert-buff|er-funct|
|00001c00| 69 6f 6e 20 72 65 76 65 | 72 74 2d 62 75 66 66 65 |ion reve|rt-buffe|
|00001c10| 72 20 63 68 65 63 6b 2d | 61 75 74 6f 5d 20 33 20 |r check-|auto] 3 |
|00001c20| 28 23 24 20 2e 20 36 37 | 39 33 29 5d 29 0a 23 40 |(#$ . 67|93)]).#@|
|00001c30| 39 32 20 48 6f 6f 6b 20 | 74 6f 20 62 65 20 63 61 |92 Hook |to be ca|
|00001c40| 6c 6c 65 64 20 77 68 65 | 6e 20 61 20 66 69 6c 65 |lled whe|n a file|
|00001c50| 20 70 61 72 74 20 69 73 | 20 66 69 72 73 74 20 6d | part is| first m|
|00001c60| 6f 64 69 66 69 65 64 2e | 0a 4d 61 72 6b 73 20 74 |odified.|.Marks t|
|00001c70| 68 65 20 6d 61 73 74 65 | 72 20 62 75 66 66 65 72 |he maste|r buffer|
|00001c80| 20 61 73 20 6d 6f 64 69 | 66 69 65 64 2e 1f 0a 28 | as modi|fied...(|
|00001c90| 64 65 66 61 6c 69 61 73 | 20 27 66 69 6c 65 2d 70 |defalias| 'file-p|
|00001ca0| 61 72 74 2d 66 69 72 73 | 74 2d 63 68 61 6e 67 65 |art-firs|t-change|
|00001cb0| 2d 68 6f 6f 6b 20 23 5b | 6e 69 6c 20 22 08 19 c2 |-hook #[|nil "...|
|00001cc0| 09 21 ad 8a 8a c3 09 21 | 71 88 c4 c5 21 29 29 87 |.!.....!|q...!)).|
|00001cd0| 22 20 5b 66 69 6c 65 2d | 70 61 72 74 2d 6d 61 73 |" [file-|part-mas|
|00001ce0| 74 65 72 2d 65 78 74 65 | 6e 74 20 78 20 66 69 6c |ter-exte|nt x fil|
|00001cf0| 65 2d 70 61 72 74 2d 63 | 68 65 63 6b 2d 61 74 74 |e-part-c|heck-att|
|00001d00| 61 63 68 65 64 20 65 78 | 74 65 6e 74 2d 62 75 66 |ached ex|tent-buf|
|00001d10| 66 65 72 20 73 65 74 2d | 62 75 66 66 65 72 2d 6d |fer set-|buffer-m|
|00001d20| 6f 64 69 66 69 65 64 2d | 70 20 74 5d 20 32 20 28 |odified-|p t] 2 (|
|00001d30| 23 24 20 2e 20 37 32 31 | 39 29 5d 29 0a |#$ . 721|9)]). |
+--------+-------------------------+-------------------------+--------+--------+